package com.smartfactory.sail.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.smartfactory.sail.entity.enums.OutWordStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *外发
 * </p>
 *
 * @author 王巨壁
 * @since 2019-08-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Outwork对象", description = "")
public class Outwork implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "批次id")
    @TableField("batchId")
    private String batchId;

    @ApiModelProperty(value = "入库批次")
    @TableField("storageRecordId")
    private Long storageRecordId;

    @ApiModelProperty(value = "外发数量")
    @TableField("outWorkSize")
    private Integer outWorkSize;

    @ApiModelProperty(value = "入库数量")
    @TableField("inStorageSize")
    private Integer inStorageSize;

    @TableField("custName")
    private String custName;

    @ApiModelProperty(value = "创建人")
    @TableField("createUser")
    private String createUser;

    @ApiModelProperty(value = "创建时间yyyy-MM-dd HH:mm:ss")
    @TableField("createTime")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "状态1待入库2已入库")
    @TableField("status")
    private OutWordStatusEnum status;


    @ApiModelProperty(value = "修改人")
    @TableField("updateUser")
    private String updateUser;

    @ApiModelProperty(value = "更新时间yyyy-MM-dd HH:mm:ss")
    @TableField("updateTime")
    private LocalDateTime updateTime;


}
